package r21310.chap04.zoodemo;

public class  Square extends Shape {
protected double a;

 public Square() {
  super();
 }

 @Override
 public double getArea(double a) {
  return 0;
 }

 @Override
 public double getLength(double b) {
  return 0;
 }

 public double getA() {
  return a;
 }

 public void setA(double a) {
  this.a = a;
 }

 public Square(double s, double c) {
  super(s, c);
 }


 public void C1(double a) {
  c=a*4;
 }

 public void S1(double a) {
  s = a * a;

 }
 public void zheng(){
  System.out.println("我的周长为"+c+"我的面积为"+s);
 }
}



